package com.platform.qujia.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @date 2024/1/16
 */
public enum GradeExpireMode implements IEnum<Integer> {
    FIXED_DAY(1, "固定天数"),
    TIME_SLOT(2, "固定时间段"),
    ;

    private final Integer code;
    private final String desc;

    GradeExpireMode(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @JsonValue
    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
